package com.study.nio;

import org.junit.jupiter.api.Test;

import java.time.LocalDate;

/**
 * @author zhuzi
 * 2024/7/4 13:35
 */
public class Demo20 {

    @Test
    public void date() {
        LocalDate parse = LocalDate.parse("2024-12-20");
        LocalDate other = parse.minusMonths(5);
        System.out.println(other);
        boolean before = LocalDate.now().isBefore(other);
        System.out.println(before);
    }
}
